package com.cesgroup.zw.spring.boot.library.echarts.barAndPie.simple;

import com.cesgroup.zw.spring.boot.echarts.component.series.Pie;
import com.cesgroup.zw.spring.boot.echarts.model.style.ItemStyle;

/**
 * @author ytj
 * @date 2019/7/8 14:14
 */
@SuppressWarnings("serial")
public class PieSimpleSeries extends Pie {
    public PieSimpleSeries(BarAndPieSimpleParam param){
        this.setName("访问来源");
        this.setType("pie");
        this.setRadius("28%");
        this.setCenter(new String[]{"75%","35%"});
        this.setData(param.getDataset().get("pie"));
        this.setItemStyle(new ItemStyle(){{
            this.setShadowBlur(10);
            this.setShadowOffsetX(0);
            this.setShadowColor("rgba(0, 0, 0, 0.5)");
        }});
    }
}
